package com.itheima.demo01;

import java.util.concurrent.Callable;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/11 18:41
 */
public class Demo_Mythread03 implements Callable<String> {

    @Override
    public String call() throws Exception {
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+"..."+i);
        }
        return "线程结束了";
    }
}
